package com.yizhang.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author: yi.zhang
 * @CreateTime: 2025-05-27 14:26:11
 * @Description: 配置文件解析实体类
 */
public class Configuration {

    /**
     * 存放数据库配置源数据
     */
    private DataSource dataSource;

    /**
     * 存放mapper.xml中sql解析数据
     */
    private Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
